libs = user32.lib gdi32.lib kernel32.lib comctl32.lib

!message nmake usage:
!message 'nmake'           : build debug version.
!message 'nmake release='  : build release version.
!message 'nmake clean'     : clean workshop
!message

lkf = /nologo /debug /INCREMENTAL:no /libpath:%MYLIB%
lbf = /nologo
mtf = -nologo

!ifdef release
clfcc = /nologo /c /O2 /MD /Zi /DNDEBUG /I%MYINCLUDE% /EHsc
clfc = /nologo /c /O2 /MD /Zi /DNDEBUG /I%MYINCLUDE%
!else
clfcc = /nologo /c /MDd /Zi /I%MYINCLUDE% /EHsc
clfc = /nologo /c /MDd /Zi /I%MYINCLUDE%
!endif

app = sb

$(app).exe : $(app).obj
	link $(lkf) /out:$@ $** $(libs) ws2_32.lib

.c.obj:
	cl $(clfc) /DW32 $<

clean:
	del *.exe *.obj *.pdb *.dll *.exp *.lib
